Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRM-19690 - Task_AdhocMailing - Use highest-priority template type #9689

Merged
merged 1 commit into from
Jan 18, 2017

Conversation

totten
Copy link
Member

@totten totten commented Jan 17, 2017

If you perform a contact search and create a new mailing, it would use
template_type=traditional, even if another template type had greater
priority. With this patch, it respects the priority.

Note: I considered changing the default in Mailing.create API to always
match most-preferred template-type. However, that would break some existing
API consumers (e.g. headless consumers or ones who define their own UI).
For external API-based integrations, we should preserve the default
semantics of body_text/body_html by defaulting to
template_type=traditional.

The preference in CRM-19690 is that any use-case based on the screen
civicrm/a/#/mailing/{id} should have its default determined by weight.


If you perform a contact search and create a new mailing, it would use
`template_type=traditional`, even if another template type had greater
priority. With this patch,  it respects the priority.

Note: I considered changing the default in Mailing.create API to always
match most-preferred template-type.  However, that would break some existing
API consumers (e.g.  headless consumers or ones who define their own UI).
For external API-based integrations, we should preserve the default
semantics of `body_text`/`body_html` by defaulting to
`template_type=traditional`.

The preference in CRM-19690 is that any use-case based on the screen
`civicrm/a/#/mailing/{id}` should have its default determined by weight.
@colemanw
Copy link
Member

Looks safe.

@colemanw colemanw merged commit 2f5cb1e into civicrm:master Jan 18, 2017
@totten totten deleted the master-tmpl branch February 8, 2017 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants